package com.neo.office.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.neo.office.server.domain.entity.Role;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 根据用户ID查询角色列表
     *
     * @param userId
     * @return
     */
    List<Role> getRoles(Integer userId);
}